package com.matongxue.springboot.user.dao;

import com.matongxue.springboot.user.pojo.UserTest2;
import com.matongxue.springboot.user.pojo.UserTest2Example;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserTest2Mapper {
    long countByExample(UserTest2Example example);

    int deleteByExample(UserTest2Example example);

    int deleteByPrimaryKey(String uid);

    int insert(UserTest2 record);

    int insertSelective(UserTest2 record);

    List<UserTest2> selectByExample(UserTest2Example example);

    UserTest2 selectByPrimaryKey(String uid);

    int updateByExampleSelective(@Param("record") UserTest2 record, @Param("example") UserTest2Example example);

    int updateByExample(@Param("record") UserTest2 record, @Param("example") UserTest2Example example);

    int updateByPrimaryKeySelective(UserTest2 record);

    int updateByPrimaryKey(UserTest2 record);

    //注解
    @Select("select * from t_user_test where loginname like '%${username}%'")
    List<UserTest2> findUserByUsername(@Param("username") String username);
}
